<#compress>
    SET FOREIGN_KEY_CHECKS=0;

    -- ----------------------------
    -- 创建 ${tableComment}
    -- Table structure for `${tableName?uncap_first}`
    -- ----------------------------
    DROP TABLE IF EXISTS `${tableName?uncap_first}`;
    CREATE TABLE `${tableName?uncap_first}` (
    <#list columnList as var>
        `${var.name?uncap_first}` ${var.type}<#if ('${var.nullAble?lower_case}' == 'pk')> AUTO_INCREMENT <#elseif ('${var.nullAble?lower_case}' == 'n')> NOT NULL <#if ('${var.defaultValue?trim}') != ''><#if ('${var.defaultValue?trim}') == 'now()'> ON UPDATE CURRENT_TIMESTAMP <#else>DEFAULT ${var.defaultValue}</#if></#if> <#else>DEFAULT NULL </#if>COMMENT '<#if (var.comment)??>${var.comment}</#if>',
    </#list>
    <#list columnList as var>
        <#if ('${var.nullAble?lower_case}' == 'pk')> PRIMARY KEY (`${var.name}`)</#if>
    </#list>
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='${tableComment}';

</#compress>